HAL QSPI control and state functions migration

This section provides information about the HAL QSPI control and state functions migration .

HAL QSPI get state

HAL1

HAL2

HAL_QSPI_GetState(const QSPI_HandleTypeDef *hqspi);
HAL_XSPI_GetState(const hal_xspi_handle_t *hxspi);

HAL QSPI get error

HAL1

HAL2

HAL_QSPI_GetError(const QSPI_HandleTypeDef *hqspi);
HAL_XSPI_GetLastErrorCodes(const hal_xspi_handle_t *hxspi);

HAL QSPI abort

HAL1

HAL2

HAL_QSPI_Abort(QSPI_HandleTypeDef *hqspi);
HAL_XSPI_Abort(hal_xspi_handle_t *hxspi, uint32_t timeout_ms);

HAL QSPI abort IT

HAL1

HAL2

HAL_QSPI_Abort_IT(QSPI_HandleTypeDef *hqspi);
HAL_XSPI_Abort_IT(hal_xspi_handle_t *hxspi);

HAL QSPI set timeout

HAL1

HAL2

HAL_QSPI_SetTimeout(QSPI_HandleTypeDef *hqspi, uint32_t Timeout);
Removed from HAL2, the timeout is set directly as function parameter.

HAL QSPI set fifo threshold

HAL1

HAL2

HAL_QSPI_SetFifoThreshold(QSPI_HandleTypeDef *hqspi, uint32_t Threshold);
HAL_XSPI_SetFifoThreshold(hal_xspi_handle_t *hxspi, uint32_t threshold);

HAL QSPI get fifo threshold

HAL1

HAL2

HAL_QSPI_GetFifoThreshold(const QSPI_HandleTypeDef *hqspi);
HAL_XSPI_GetFifoThreshold(const hal_xspi_handle_t *hxspi);

HAL QSPI set flash ID

HAL1

HAL2

HAL_QSPI_SetFlashID(QSPI_HandleTypeDef *hqspi, uint32_t FlashID);
Removed from HAL2.